From 12dec5279e4324cf089ca8c326bf9a39e19c178f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 27 Oct 2012 02:07:43 +0200 Subject: [PATCH] themingbackground: Add content_box variable ... to go with border_box and padding_box. --- gtk/gtkthemingbackground.c | 5 +++++ gtk/gtkthemingbackgroundprivate.h | 1 + 2 files changed, 6 insertions(+) diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c index 55df2dc230..b80cc5b9a8 100644 --- a/gtk/gtkthemingbackground.c +++ b/gtk/gtkthemingbackground.c @@ -357,6 +357,11 @@ _gtk_theming_background_init_context (GtkThemingBackground *bg) _gtk_rounded_box_shrink (&bg->padding_box, bg->border.top, bg->border.right, bg->border.bottom, bg->border.left); + + bg->content_box = bg->padding_box; + _gtk_rounded_box_shrink (&bg->content_box, + bg->padding.top, bg->padding.right, + bg->padding.bottom, bg->padding.left); } void diff --git a/gtk/gtkthemingbackgroundprivate.h b/gtk/gtkthemingbackgroundprivate.h index e6ed1df76c..04ecd6afce 100644 --- a/gtk/gtkthemingbackgroundprivate.h +++ b/gtk/gtkthemingbackgroundprivate.h @@ -37,6 +37,7 @@ struct _GtkThemingBackground { cairo_rectangle_t paint_area; GtkRoundedBox border_box; GtkRoundedBox padding_box; + GtkRoundedBox content_box; GtkJunctionSides junction; GtkBorder border; -- 2.30.2